// 通用响应接口
export interface ApiResponse<T = any> {
  code: number;
  message: string;
  data: T;
}

// 分页请求参数
export interface PaginationParams {
  page: number;
  pageSize: number;
}

// 分页响应数据
export interface PaginationResult<T> {
  total: number;
  list: T[];
  page: number;
  pageSize: number;
}

// 用户相关接口
export interface UserInfo {
  id: number;
  username: string;
  avatar?: string;
  email?: string;
  createTime: string;
}

// 帖子相关接口
export interface Post {
  id: number;
  title: string;
  content: string;
  authorId: number;
  author: UserInfo;
  createTime: string;
  updateTime: string;
  viewCount: number;
  likeCount: number;
  commentCount: number;
}

// 评论相关接口
export interface Comment {
  id: number;
  content: string;
  postId: number;
  authorId: number;
  author: UserInfo;
  createTime: string;
  updateTime: string;
  likeCount: number;
} 